<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/5/13
 * Time: 13:56
 */

namespace App\Winged\Patients\Api;


class Common extends Api
{
    public static $actions = [
        'province' => 'doctor/patient/region/province',
        'sub_region' => 'doctor/patient/region/sub_region/%s',
    ];

    /**
     * 获取所有省份
     * @return \Illuminate\Support\Collection|string
     */
    public static function province()
    {
        return self::doGet('province');
    }

    public static function subRegion($province_id)
    {
        return self::doGet('sub_region' ,$province_id);
    }

}